﻿/*文件注释
 * ===============================================================================
 * 说明：
 * 作者：zengyy
 * 版本：v1.0
 * 创建日期：2013-12-07 19:03:09
 * 完成日期： 
 * 修改纪录：  
 * ===============================================================================
 */
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using SRF.Common.Validation;

namespace SRF.Admin.Models
{
    ///<summay>
    /// 
    ///</summay>
    [Serializable]
    public class DataRuleItem
    {
        #region 属性

        /// <summary>
        /// 
        /// </summary> 
        [DisplayName("Id")]
        public string Id { get; set; }
        /// <summary>
        /// 规则项名称
        /// </summary>
        [StringLength(50)]
        [Required(ErrorMessage = "请输入规则项名称")]
        [DisplayName("规则项名称")]
        public string Name { get; set; }
        /// <summary>
        /// 过滤条件
        /// </summary>
        [StringLength(500)] 
        [DisplayName("过滤条件")]
        public string Condition { get; set; }
        /// <summary>
        /// 数据规则Id
        /// </summary> 
        [DisplayName("数据规则Id")]
        public string DataRuleId { get; set; }
        /// <summary>
        /// 排序 
        /// </summary>
        [DataTypeValidator(DataTypePattern.Integer)]
        [Required(ErrorMessage = "请输入排序")]
        [DisplayName("排序 ")]
        public int Rank { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string Remark { get; set; }

        #endregion
    }
}